package com.huitu.whht.base.core.api.wr.sens.entities;

import lombok.Builder;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.ToString;
import com.huitu.whht.api.core.common.base.BaseEntity;

import com.fasterxml.jackson.databind.annotation.JsonDeserialize;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.huitu.whht.api.core.common.base.MyLocalDateTimeDeserializer;
import com.huitu.whht.api.core.common.base.MyLocalDateTimeSerializer;
import java.time.LocalDateTime;

/**
 * 说明: 传感器基本信息表实体类,表名称: WR_SENS_B <br/>
 * 日期: 2019-04-11
 * @author LiuCW
 */
@Builder
@Data
@EqualsAndHashCode(callSuper = true)
@ToString(callSuper = true)
public class WrSensB extends  BaseEntity {

private static final long serialVersionUID = 4L;

    /**
      * 传感器代码
      */
    private String sensCd;
    /**
      * RTU代码
      */
    private String rtuCd;
    /**
      * 组织机构代码
      */
    private String orgCd;
    /**
      * 传感器类型
      */
    private String sensTp;
    /**
      * 传感器品牌
      */
    private String sensBrand;
    /**
      * 传感器型号
      */
    private String sensSn;
    /**
      * 电源
      */
    private String power;
    /**
      * 接口方式
      */
    private String interTp;
    /**
      * RFID标识码
      */
    private String rfidSn;
    /**
      * 出厂日期
      */
    @JsonDeserialize(using = MyLocalDateTimeDeserializer.class)
    @JsonSerialize(using = MyLocalDateTimeSerializer.class)
    private LocalDateTime prodDt;
    /**
      * 时间戳
      */
    @JsonDeserialize(using = MyLocalDateTimeDeserializer.class)
    @JsonSerialize(using = MyLocalDateTimeSerializer.class)
    private LocalDateTime ts;
    /**
      * 备注
      */
    private String nt;
}